# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-beaker
_pkgname=Beaker
pkgver=1.11.0
pkgrel=4
pkgdesc='A Session and Caching library with WSGI Middleware'
url='https://pypi.org/project/Beaker/#files'
arch=('any')
license=('BSD')
depends=('python2' 'python2-funcsigs')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2c8159b50b06e0ebc2045d1175142212aa7a12300a52078d8639661c48d808d96882290aad893bff7e39221662ac5fe21b42627a8d3fa16dc1065373e11093ef')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

